<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>ejs_条件渲染</title>
</head>
<body>
  <header>欢迎来到我的网站</header>
  <% if (isLogin) { %>
  <h2>欢迎回来</h2>
  <% } else { %>
  <button>登录</button><button>注册</button>
  <% } %>
</body>
</html>